package one;

import java.util.Scanner;

public class test8593 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i]=scanner.nextInt();
        }
        int length=0;
        for (int i = n-1; i >=0 ; i--) {
            for(int j=i;j>=0;j--){
                if(array[j]<=Math.abs(array[i])){
                    length=length>(i-j+1)?length:(i-j+1);
                }else {
                    break;
                }
            }
        }
        System.out.println(length);
    }
}
